package cn.tedu.shoppingmall.vo;

import com.sun.org.glassfish.gmbal.DescriptorFields;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class Transaction {
    private Integer id;
    private Integer state;
    private String username;
    private Integer userid;
    private String comid;
    private Double price;
    private Integer comsum;
    private LocalDateTime created;
    private String UUID;


    private List<ComTrans> comTrans = new ArrayList<>();

    @Override
    public String toString() {
        return "Transaction{" +
                "id=" + id +
                ", state=" + state +
                ", username='" + username + '\'' +
                ", userid=" + userid +
                ", comid='" + comid + '\'' +
                ", price=" + price +
                ", comsum=" + comsum +
                ", created=" + created +
                ", UUID='" + UUID + '\'' +
                ", comTrans=" + comTrans +
                '}';
    }

    public String getUUID() {
        return UUID;
    }

    public void setUUID(String UUID) {
        this.UUID = UUID;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getComid() {
        return comid;
    }

    public void setComid(String comid) {
        this.comid = comid;
    }

    public Integer getComsum() {
        return comsum;
    }

    public void setComsum(Integer comsum) {
        this.comsum = comsum;
    }

    public List<ComTrans> getComTrans() {
        return comTrans;
    }

    public void setComTrans(List<ComTrans> comTrans) {
        this.comTrans = comTrans;
    }

    public LocalDateTime getCreated() {
        return created;
    }

    public void setCreated(LocalDateTime created) {
        this.created = created;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }
}
